// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入vuex
import store from './store/store'
// 引入axios
import Axios from 'axios'
Vue.prototype.$axios = Axios;
// 引入VantUI
import Vant from 'vant';
import 'vant/lib/index.css';
// 引入公共样式
import "../static/css/common.css";
// 引入amfe-flexible
import "amfe-flexible/index"
Vue.use(Vant);
// 引入懒加载
import { Lazyload } from 'vant';
Vue.use(Lazyload);

// 只在本地环境引入mock.js
process.env.Mock && require('./mock/mock.js');

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
});
